#位置参数
#def power(x):
    #return x * x * x
#print(power(5))
#def hl(x,n):
    #s = 1
    #while n > 0:
        #n = n - 1
        #s = s * x
    #return s
#print(hl(6,2))
#默认参数
#def hl(x,n=2):
    #s = 1
    #while n > 0:
     #   n = n - 1
      #  s = s * x
    #return s
#print(hl(9,2))

#def enroll(name,gender,age,city):
    #print('name:',name)
    #print('gender:',gender)
    #print('age:',age)
    #print('city:',city)
#enroll('huangliang','sk','5','广州')

#def hl_end(L=[]):
#    L.append('END')
#    return L
#print(hl_end())

#可变参数
#def calc(*numbers):
 #   sum = 0
  #  for n in numbers:
    #    sum = sum + n * n
   # return sum
#nums = [1,2,3]
#print(calc(*nums))
 
#关键字参数
#def person(name, age,**kw):
 #   print('name:',name,'age:',age,'other:',kw)
#hl = {'city': 'Beijing', 'job': 'Engineer','like':'football'}
#print(person('huangliang',52,**hl))

#参数组合
#def f1(a,b,c=0,*args,**kw):
 #   print('a=',a,'b=',b,'c=',c,'agrs=',args,'kw=',kw)

#def f2(a, b, c=0, *, d, **kw):
 #   print('a =', a, 'b =', b, 'c =', c, 'd =', d, 'kw =', kw)
#print(f1(1,2))
#print(f1(1, 2, 3, 'a', 'b', x=99))
#args = (1, 2, 3, 4)
#kw = {'d': 99, 'x': '#'}
#print(f1(*args,**kw))